CXX=g++
CC=gcc

all:
	@echo '--begin compile and link@alex--'
	${CXX} -g -c ./class_a.cpp -o class_a.o -Wall
	${CXX} -g -c ./sub.cpp -o sub.o -Wall
	${CXX} -g -c ./point.h -o point.o -Wall
	${CXX} -g ./main.cpp -o main.exe -Wall sub.o class_a.o point.o
	
	@echo '--success finished@alex--'
clean:
	@echo '--begin delete the object and bin files'
	rm -rf *.o
	rm -rf main.exe
	rm -rf *.test.bin
	rm -rf test*
	@echo '--success finished@alex--'
	
